package com.kuanter.kuanterauto.adapter;

import android.graphics.Paint;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

import com.kuanter.kuanterauto.R;

public class MerchanServiceAdapter extends BaseAdapter {
	LayoutInflater factory;
	
	public MerchanServiceAdapter(LayoutInflater factory) {
		this.factory = factory;
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return 10;
	}

	@Override
	public Object getItem(int arg0) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public long getItemId(int arg0) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public View getView(int position, View view, ViewGroup parent) {
		if(view == null) {
			view = factory.inflate(R.layout.merchan_service_item, null);
		}
		TextView merchanName = (TextView) view.findViewById(R.id.merchan_service_name);
		TextView merchan_service_price = (TextView) view.findViewById(R.id.merchan_service_price);
		merchan_service_price.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG);  //中间画线
		return view;
	}

	
}
